import PropTypes from "prop-types";
import React, { memo, useState } from "react";

import { Input } from "antd";

import Test from './test1'
const test_demo = memo((props) => {
  const [value, setValue] = useState(props.value);
  const handleChange = (e) => {
    console.log(e);
    setValue(e.target.value);
  };
  return (
    <>
    <Input value={value} onChange={handleChange} />
    <Test></Test>
    </>
  );
});

test_demo.propTypes = {
  value: PropTypes.string.isRequired,
};
export default test_demo;
